﻿@model Ymca.Web.Models.Profile.EditProfileViewModel

<div class="page-hedaer">
	<h3>Edit @Model.Id</h3>
</div>

@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
	@Html.HiddenFor(model => model.OriginalId, new {value = User.Identity.Name})
	@Html.HiddenFor(model => model.Id, new { value = User.Identity.Name })
	
	<div class="control-group">
		<label class="control-label" for="Id">User Name</label>
		<div class="controls">
			@Html.DisplayFor(model => model.Id)
			@*@Html.TextBoxFor(model => model.Id, new { placeholder = "User name", disabled = "disabled" })*@
			@*@Html.ValidationMessageFor(model => model.Id, null, new { @class = "text-error" })*@
		</div>
	</div>

	<div class="control-group">
		<label class="control-label" for="Name">Name</label>
		<div class="controls">
			@Html.TextBoxFor(model => model.Name, new { placeholder = "Name" })
			@Html.ValidationMessageFor(model => model.Name, null, new { @class = "text-error" })
		</div>
	</div>

	<div class="control-group">
		<label class="control-label" for="Surname">Surname</label>
		<div class="controls">
			@Html.TextBoxFor(model => model.Surname, new { placeholder = "Surname" })
			@Html.ValidationMessageFor(model => model.Surname, null, new { @class = "text-error" })
		</div>
	</div>

	<div class="control-group">
		<label class="control-label" for="Email">Email</label>
		<div class="controls">
			@Html.TextBoxFor(model => model.Email, new { placeholder = "Email" })
			@Html.ValidationMessageFor(model => model.Email, null, new { @class = "text-error" })
		</div>
	</div>

	<div class="control-group">
		<label class="control-label" for="Info">Info</label>
		<div class="controls">
			@Html.TextAreaFor(model => model.Info, new { lines = "6" })
		</div>
	</div>

	<div class="control-group">
		<label class="control-label" for="Notify">Allow Email Notifications?</label>
		<div class="controls">
			@Html.CheckBoxFor(model => model.Notify)
		</div>
	</div>

	<p>
		<input type="submit" class="btn btn-success" value="Save" />
		<a href="@ViewBag.ReturnUrl" class="btn">Back</a>
	</p>
}
